<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
	<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
	<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="js/bootsnav.js"></script>
</head>
<body>
    <nav class="navbar navbar-default navbar-static-top navbar-stacked">
        <!-- container容器，左右留有余地 -->
        <div class="container">

            <div class="navbar-header">
                <!--
                    在浏览器的宽度很小时，buttion出现。
                    图案为方框内有三道杠。
                    data-target="#TaoistsNavBar" 与 div id="TaoistsNavBar" 相对应
                    -->
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#TaoistsNavBar" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <!--
                        icon-bar有一个，那个图标就有一道杠。
                        这里有三个，那么图标就有三道杠
                      -->
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            </div>

            <div class="collapse navbar-collapse" id="TaoistsNavBar">
                <ul class="nav navbar-nav nav-stacked">
                    <li class="active"><a href="#">谷部</a></li>
                    <li><a href="#">稻秆</a></li>
                    <li><a href="#">豆油</a></li>
                    <li><a href="#">米酒</a></li>
                    <li><a href="#">烧酒</a></li>

                    <!-- 一个下拉列表 -->
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">木部<span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#">松叶</a></li>
                            <li class="divider"></li>
                            <li><a href="#">松花</a></li>
                            <li class="divider"></li>
                            <li><a href="#">杉</a></li>
                            <li class="divider"></li>
                            <li><a href="#">牡桂</a></li>
                        </ul>
                    </li>
                </ul>

                <!-- navbar-right:通过 CSS 设置特定方向的浮动样式。[节选自bootstrap官网]-->
                <!-- <form class="navbar-form navbar-right">
                    <div class="input-group">
                        <input type="search" name="information" class="form-control" placeholder="输入搜索的内容" />
                        <span class="input-group-btn">
                            <button class="btn btn-default">
                                <span class="glyphicon glyphicon-search"></span>
                            </button>
                        </span>
                    </div>
                </form> -->
            </div>
        </div>
    </nav>
</body>
</html>